Skip to main content
  1. Notes/

Flutter vs Native - how to make a splash?

feature

If you’re targeting Android 12+

void main() async {
  final binding = WidgetsFlutterBinding.ensureInitialized();

  binding.deferFirstFrame();
  
  runApp(MyApp());
}

// somewhere after your async initialization
void init(WidgetsFlutterBinding binding) async {
  await initializeAsyncDependencies();
  binding.allowFirstFrame();
}

There's no articles to list here yet.